package com.example.demo.convert;

import com.example.demo.domain.entity.DataPermissionDO;
import com.example.demo.domain.vo.DataPermissionVO;
import com.example.demo.domain.param.DataPermissionRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface DataPermissionConvert {
    DataPermissionConvert INSTANCE = Mappers.getMapper(DataPermissionConvert.class);

    DataPermissionDO toDO(DataPermissionRequest request);

    DataPermissionVO toVO(DataPermissionDO dataPermissionDO);
}
